<?php

  class ZiliaoAction extends CommonAction{
  
    public function index(){
	
	  if(!empty($_POST)){
	  
	    $re=M('dailiuser')->where('id="%s"',session('did'))->save($_POST);
		
		if($re!==false){
		
		  $this->success('设置成功');exit();
		
		}else{
		
		  $this->error('设置失败');
		
		}
	  
	  }
	
	  $this->re=M('dailiuser')->where('id="%s"',session('did'))->find();
	
	  $this->display();
	
	}
  
  
  }